package gdut.imis.constants;

/**
 * @Description
 * @Author JiaFu
 * @Date 2024/1/29 21:58
 */
public class UserConstants {
    public static final String USER_INDEX_TEMPLATE =
            "{\n" +
                    "  \"mappings\": {\n" +
                    "    \"properties\": {\n" +
                    "      \"id\":{\n" +
                    "        \"type\": \"keyword\"\n" +
                    "      },\n" +
                    "      \"name\":{\n" +
                    "        \"type\": \"text\",\n" +
                    "        \"analyzer\": \"ik_max_word\", \n" +
                    "        \"copy_to\": \"all\"\n" +
                    "      },\n" +
                    "      \"age\":{\n" +
                    "        \"type\": \"integer\"\n" +
                    "      },\n" +
                    "      \"address\":{\n" +
                    "        \"type\": \"text\",\n" +
                    "        \"analyzer\": \"ik_max_word\",\n" +
                    "        \"copy_to\": \"all\"\n" +
                    "      },\n" +
                    "      \"city\":{\n" +
                    "        \"type\": \"keyword\"\n" +
                    "      },\n" +
                    "      \"all\":{\n" +
                    "        \"type\": \"text\",\n" +
                    "        \"analyzer\": \"ik_max_word\"\n" +
                    "      }\n" +
                    "    }\n" +
                    "  }\n" +
                    "}";
}
